/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.andromeda.saturno.property.change;

import com.andromeda.saturno.property.PropertyChange;

/**
 *
 * @author Dickinson Román Arismendy Torres
 */
public class SetValuePropertyChange<T> implements PropertyChange<T> {

    private T newValue;

    public SetValuePropertyChange(T newValue) {
        this.newValue = newValue;
    }

    public T getNewValue() {
        return newValue;
    }

    public void setNewValue(T newValue) {
        this.newValue = newValue;
    }

    @Override
    public T previewChange(T original) {
        return newValue;
    }
}
